package com.asunny.relation.d4_implementation;

public class KeyBoard implements USB{
    private String name;
    @Override
    public void connect(){
        System.out.println(name + "键盘连接设备了~~~");
    }
    public  void  keyDown(){
        System.out.println(name + "键盘按键按下了，~~~");
    }
    public KeyBoard(String name) {
        this.name = name;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
}
